<?php
if ( !defined('APP_PATH') ){
	exit('Access Denied.');
}

define('APP_NAME', 'HEIVR_OA');
define('APP_TIME', time());
define('APP_URL', htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].preg_replace("/\/+(api)?\/*$/i", '', substr($_G['PHP_SELF'], 0, strrpos($_G['PHP_SELF'], '/'))).'/'));

define('HTTP_REFERER', $_SERVER['HTTP_REFERER']);
mb_internal_encoding('UTF-8');

define('APP_ERROR_LEVEL', E_ALL^E_WARNING^E_NOTICE);

mb_internal_encoding('UTF-8');
date_default_timezone_set('PRC');
require_once(APP_PATH . '/SupEngine/core.php');

core::init();

?>